package com.app.samba.util;

/**
 * Created Date 2019/5/15
 *
 * @author liangkun
 * description：网路常量
 */
public interface NetConstant {

    /**************socket服务端返回码******/
    /**
     * 接口获取成功
     */
    String RESPONSE_OK = "000000";
    /**
     * 失败
     */
    String RESPONSE_FAIL = "000001";
    /**
     * 不存在该编号的设备
     */
    String RESPONSE_NOT_DEVICE = "000002";
    /**
     * 用户不存在
     */
    String RESPONSE_NOT_USER = "000003";
    /**
     * 缺失参数
     */
    String RESPONSE_NOT_PARMAR = "000004";
    /**
     * 验证码无效
     */
    String RESPONSE_INVALID_CODE = "000005";
    /**
     * 验证码已失效
     */
    String RESPONSE_FAILURE_CODE = "000006";
    /**
     * 手机号码格式错误
     */
    String RESPONSE_PHONE_FORMAT = "000007";
    /**
     * 验证码错误
     */
    String RESPONSE_CODE_ERROR = "000008";
    /**
     * 已绑定设备
     */
    String RESPONSE_BINDED = "000009";
    /**
     * 验证码下发成功，请向主用户询问验证码
     */
    String RESPONSE_CODE_SEND = "000010";
    /**
     * 用户名或密码错误
     */
    String RESPONSE_COUNT_ERROR = "000011";
    /**
     * You haven't logged in yet
     */
    String RESPONSE_LOGGED_YET = "000012";
    /**
     * 请先激活后再绑定设备
     */
    String RESPONSE_NOT_ACTIVATION = "000013";

    /**
     * socket状态码
     */
    int SOCKET_SUCCESS = 10000; //成功返回
    int SOCKET_FAIL = 10001; //失败返回
    int SOCKET_NOT_DEVICE = 10002; // 不存在该编号的设备
    int SOCKET_NOT_USER = 10003; //用户不存在
    int SOCKET_NOT_PARMAR = 10004; //缺失参数
    int SOCKET_INVALID_CODE = 10005; //验证码无效
    int SOCKET_FAILURE_CODE = 10006; //验证码已失效
    int SOCKET_PHONE_FORMAT = 10007; //手机号码格式错误
    int SOCKET_CODE_ERROR = 10008; //验证码错误
    int SOCKET_BINDED = 10009; //已绑定设备
    int SOCKET_CODE_SEND = 10010; //验证码下发成功
    int SOCKET_NOT_ACTIVATION = 10013; //验证码下发成功


    int SOCKET_TIMEOUT = 11000; //超时链接
    int SOCKET_UPDATE = 11001; //搜索完毕，更新窗口
    int SOCKET_DATA_PARSE = 11002; //服务端解析数据有误
    int SOCKET_ORDER_ERROR = 11003; //服务端在传手机端数据之前，可能把流关闭，导致收到的数据为空
    int SOCKET_ECONNR_EFUSED = 11004; //服务器拒绝
    /**
     * socket超时通信时间
     */
    int SOCKET_TIME_OUT = 5000;
    /**
     * socket通信的端口
     */

    int SOCKET_PORT = 8899; //设备端口
    int SOCKET_FILE_PORT = 9001; //文件访问的端口
    int SERVER_PORT = 8095;//连接Server端口
    /**
     * socket给NAS端发送的命令码
     */
    String BIND_DEVICE = "bindDevice"; //绑定端口的命令

    /******************************************************************
     * 接口字段-----固定参数 key
     */
    String PHONE = "phone";
    String USERNAME = "username";
    String PASSWORD = "password"; //用户密码
    String PHONEMAC = "phoneMac"; //手机mac
    String IMEI = "imei"; //手机deviceid
    String PHONEMODEL = "phoneModel"; //手机型号
    String TOCKEN = "tocken"; //手机型号
    String AUTHCODE = "authCode"; //次用户绑定验证码
    String IP = "ip";//绑定的ip
    String DEVICE_NAME = "DEVICE_NAME";//设备名称
    String USERNAME_LOG = "userName";//传递参数的接口手机

    String MY = "a";// 我
    String MY_WIFE = "b";//我的老婆
    String MAN_DADDY = "aa";//爷爷
    String MAN_MOTHER = "ab";//奶奶
    String WOMAN_DADDY = "ba";//外公
    String WOMAN_MOTHER = "bb";//外婆
    String CHILD = "ca";//儿子
    String FEMALE = "cb";//女儿
    String MY_WORK = "an";//我的同事
    String MY_WIFE_WORK = "bn";//老婆同事

    /**************************事件类型****************************************/
//    事件大分类 1: 回忆 2: 亲情 3: 旅行 4: 聚会 5: 节假日 6: 友情
    String EVENT_RECALL = "回忆";
    String EVENT_FAMILY = "亲情";
    String EVENT_JOURNEY = "旅行";
    String EVENT_MEET = "聚会";
    String EVENT_HOLIDAY = "节假日";
    String EVENT_FRIEND = "友情";
    String EVENT_TITILE = "eventTitle"; //事件标题
    String EVENT_TYPE = "eventType"; //事件类型

    String TITLE = "TITLE";//首页title
    String IS_CHINA = "IS_CHINA";//地点使用
    String CHILD_TITLE = "CHILD_TITLE";//子标题
    String PLAY_DETAIL_DATA = "PLAY_DETAIL_DATA";//播放详情数据
    String IMAGE_LAGER = "IMAGE_LAGER";//大图浏览
    String IMAGE_POSITION = "IMAGE_POSITION";//大图浏览
    String HOME_UUID = "makePicId";//家庭时光


    //********************************************************************
    //分页
    //********************************************************************
    int PAGE_SIZE_DEFAULT = 31;//默认加载99张
    int PAGE_SIZE_LOAD = 100;//下拉加载，每页100张
    int PAGE_NUM = 1;//默认第一页

    /*********************音乐分页常量****************************/
    int MUSIC_PAGE_NUM = 20; //音乐每次请求的数量
    int MUSIC_LIMIT_TITLE = 27; //音乐标题限制长度
    int MUSIC_LIMIT_DES = 20; //音乐附表标题限制长度
    /*********************影视分页常量****************************/
    int VIDEO_PAGE_NUM = 21; //影视每次请求的数量
    /*********************音乐播放常量****************************/
    int MUSIC_PALY = 1; //播放
    int MUSIC_PAUSE = 2; //暂停
    int MUSIC_STOP = 3; //停止
    int MUSIC_GOON = 4; //继续播放
    int MUSIC_NEXT = 5; //下一首
    int MUSIC_COMPLETE = 6; //播放完毕
    int MUSIC_RE_PLAY = 7;//重播


    /*********************事件****************************/


    //********************************************************************
    //设置--->备份管理
    //********************************************************************
    String SP_BACKUP_STATE = "SP_BACKUP_STATE";
    String WIFI_BACKUP = "WIFI_BACKUP";
    String IMAGE_BACKUP = "IMAGE_BACKUP";
    String VIDEO_BACKUP = "VIDEO_BACKUP";
    String CONTACT_BACKUP = "CONTACT_BACKUP";
    String IMAGE_BACKUP_TIME = "IMAGE_BACKUP_TIME";
    String VIDEO_BACKUP_TIME = "VIDEO_BACKUP_TIME";
    String CONTACT_BACKUP_TIME = "CONTACT_BACKUP_TIME";

    int BACKUP_DELAY_TIME = 30 * 1000;//备份延迟时间

    //开启服务的类名
    String BACKUP_SERVER_CLASSNAME_IMAGE = "com.app.hscphone.service.ImageBackupService";
    String BACKUP_SERVER_CLASSNAME_VIDEO = "com.app.hscphone.service.VideoBackupService";
    String BACKUP_SERVER_CLASSNAME_CONTRACT = "com.app.hscphone.service.ContactBackupService";

    /**************************Samba服务，盒端***********************************/
    String ROOT_SAMBA_PATH = "smb://192.168.31.76/"; //samba地址
    String SAMBA_HOST = "192.168.31.76"; //samba主机
    String SAMBA_ACCOUNT = "administrator";//samba账号
    String SAMBA_PASSWORD = "065021";//samba账号
    //文件类型 0 文件夹 /1 视频 /2 音乐 /3 图片
    int PIC_TYPE = 3;
    int VIDEO_TYPE = 2;
    int MUSIC_TYPE = 1;
    int DIR_TYPE = 0;
    int FILE_OTHER = 5; //其他文件格式
    /**************************本地**************************************/
    String FILE_IMAGE_CODE = "image_code"; //图片code
    String FILE_VIDEO_CODE = "video_code"; //视频code
    String FILE_MUSIC_CODE = "music_code"; //音乐code
    /**
     * 图片所需文件夹
     */
    String FILE_DCIM = "/storage/emulated/0/DCIM";
    String FILE_PICTURES = "/storage/emulated/0/Pictures";
    String FILE_DOWNLOAD = "/storage/emulated/0/Download";


    //********************************************************************
    //云冲印
    //********************************************************************
    String CLOUD_DATA_LIST = "CLOUD_DATA_LIST";//云冲印数据List
    String GOODS_INFO = "GOODS_INFO";//商品信息Bean
}
